#include<thread>
#include<iostream>
#include<chrono>
using namespace std;

struct CTest
{
public:
	int value;
	void run(void)
	{
		for (int i = 0; i < 5; i++)
		{
			cout<< "CTest running... " << value <<endl;
			value ++;
			this_thread::sleep_for(chrono::seconds(1));
		}
	}
};

int main(void)
{
	CTest c1{10}, c2{200};
	
	thread t1(&CTest::run, &c1);
	thread t2(&CTest::run, &c2);
	
	t1.join();
	t2.join();
}
